<?php
use herosphp\bean\Beans;
/**
 * trading模块Beans装配配置
 * @author yuliang<flzxsqc_hi@163.com>
 */
$beans = array(
	//CartService configs
	'trading.tradingCart.service' => array(
		'@type' => Beans::BEAN_OBJECT,
		'@class' => 'trading\service\CartService',
		'@params' => array('tradingCart'),

	),
	//OrderService configs
	'trading.tradingOrder.service' => array(
		'@type' => Beans::BEAN_OBJECT,
		'@class' => 'trading\service\OrderService',
		'@params' => array('TradingOrder'),

	),
	//OrderShippingService configs
	'trading.tradingOrderShipping.service' => array(
		'@type' => Beans::BEAN_OBJECT,
		'@class' => 'trading\service\OrderShippingService',
		'@params' => array('TradingOrderShipping')

	),
	//ContractService configs
	'trading.tradingContract.service' => array(
		'@type' => Beans::BEAN_OBJECT,
		'@class' => 'trading\service\ContractService',
		'@params' => array('TradingContract')

	),
	//InvoiceService configs
	'trading.tradingInvoice.service' => array(
		'@type' => Beans::BEAN_OBJECT,
		'@class' => 'trading\service\InvoiceService',
		'@params' => array('TradingInvoice')

	),
	//SaleService configs
	'trading.tradingSale.service' => array(
		'@type' => Beans::BEAN_OBJECT,
		'@class' => 'trading\service\SaleService',
		'@params' => array('TradingSale')

	),
	//LogService configs
	'trading.tradingOrderLog.service' => array(
		'@type' => Beans::BEAN_OBJECT,
		'@class' => 'trading\service\OrderLogService',
		'@params' => array('TradingOrderLog')
	),
);
return $beans;
